import request from '@/utils/request'

// 查询省住建厅官网厅长信箱列表
export function listMailbox(query) {
  return request({
    url: '/leader/mailbox/page',
    method: 'get',
    params: query
  })
}

// 查询省住建厅官网厅长信箱详细
export function getMailbox(id) {
  return request({
    url: '/leader/mailbox/' + id,
    method: 'get'
  })
}

// 新增省住建厅官网厅长信箱
export function addMailbox(data) {
  return request({
    url: '/leader/mailbox',
    method: 'post',
    data: data
  })
}

// 修改省住建厅官网厅长信箱
export function updateMailbox(data) {
  return request({
    url: '/leader/mailbox',
    method: 'put',
    data: data
  })
}

// 删除省住建厅官网厅长信箱
export function delMailbox(id) {
  return request({
    url: '/leader/mailbox/' + id,
    method: 'delete'
  })
}
